import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';

//void main() => runApp(MyApp());
void main() => runApp(_widgetForRoute(window.defaultRouteName));

Widget _widgetForRoute(String route) {

  switch (route) {
    case 'flutter_market':
      return MaterialApp(
        home: Scaffold(
          body: Center(
            child: Text('market Content'),
          ),
        ),
      );
      break;

    case 'flutter_position':
      return MaterialApp(
        home: Scaffold(
          body: Center(
            child: Text('Position Content'),
          ),
        ),
      );
      break;

    case 'flutter_account':
      return MaterialApp(
          home: Center(
            child: Text('Account Content',
              style: TextStyle(
                  color: Colors.lightBlue,
                  fontSize: 20

              ),),
          ));
      break;

    default:
      return Center(
        child: Text('Unknown route: $route', textDirection: TextDirection.ltr),
      );
  }
}
